/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
}

.auth-buttons button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
}

.auth-buttons button:hover {
    background-color: #555;
}

#user-profile {
    display: flex;
    align-items: center;
}

#user-avatar {
    width: 30px; /* 调整头像大小 */
    height: 30px; /* 调整头像大小 */
    border-radius: 50%; /* 将头像设置为圆形 */
    margin-right: 10px; /* 调整头像与用户名之间的间距 */
}

#user-name, #user-membership {
    margin-right: 10px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 70px auto 20px;
    padding: 0 20px;
}

.sidebar {
    width: 200px; /* 固定宽度 */
    height: 250px; /* 固定高度 */
    background-color: rgba(244, 244, 244, 0.8); /* 透明度适中的白色背景 */
    padding: 10px;
    position: fixed; /* 固定位置 */
    top: 70px; /* 与顶部导航栏保持距离 */
    bottom: 0; /* 底部与视口底部对齐 */
    text-align: center; /* 文字居中 */
    border-radius: 10px; /* 圆角 */
    /*overflow-y: auto; !* 添加垂直滚动条 *!*/
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background-color: #ddd;
}

.sidebar ul li a.active {
    background-color: #999; /* 添加活动类后的背景颜色 */
}

.content {
    /*flex: 1; !* 占据剩余空间 *!*/
    width: 1200px; /* 固定宽度 */
    padding: 10px;
    background-color: #cccccc;
    margin-left: 220px; /* 保证右侧内容区域的偏移 */
    overflow-y: auto; /* 添加垂直滚动条 */
    height: calc(100vh - 70px); /* 让内容区域在垂直方向上充满剩余空间，并可以滚动 */
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.movie-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.movie {
    width: 200px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.movie img {
    width: 100%;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.movie h3 {
    margin: 5px 0;
}

.movie p {
    font-size: 14px;
    color: #666;
}

.movie-info {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.movie-rank {
    font-weight: bold;
    color: #ff0000; /* 红色 */
}

.sidebar ul {
    height: calc(100vh - 70px); /* 让侧边栏充满屏幕高度，减去顶部导航栏的高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
    padding-right: 10px; /* 调整内边距，避免滚动条遮挡内容 */
}

#filter-section {
    margin-bottom: 20px;
}

#filter-section h3 {
    margin-bottom: 5px;
    color: #333; /* 标题颜色 */
}

.filter-options {
    margin-bottom: 10px;
}

.filter-options label {
    margin-right: 10px;
    display: inline-block; /* 使复选框水平排列 */
}

.pagination-controls {
    margin-top: 20px;
}

/*电影排行*/
.rankings {
    width: 200px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.rankings-filter {
    margin-bottom: 10px;
}

.rankings-filter button {
    padding: 5px 10px;
    margin-right: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rankings-filter button:hover {
    background-color: #ddd;
}

.rankings-filter button.active {
    background-color: #444;
    color: #fff;
    border-color: #444;
}

.rankings-list {
    /* 排行榜样式 */
}

#rankings-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

#rankings-list .movie {
    width: 200px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#rankings-list .movie img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

#rankings-list .movie h3 {
    margin: 5px 0;
}

#rankings-list .movie p {
    font-size: 14px;
    color: #666;
}

/* 主创作品 */
.creators {
    width: 200px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#creators input[type="text"] {
    width: 200px;
    padding: 5px;
    margin-right: 10px;
}

#creators button {
    padding: 5px 10px;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
}

#creators button:hover {
    background-color: #555;
}

#creator-movie-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

#creator-movie-list .movie {
    width: 200px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#creator-movie-list .movie img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

#creator-movie-list .movie h3 {
    margin: 5px 0;
}

#creator-movie-list .movie p {
    font-size: 14px;
    color: #666;
}

.more-filter button {
    padding: 5px 10px;
    margin-right: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.section-title {
    text-align: center;
    padding-bottom: 30px;
}
.section-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 0;
    color: #5c768d;
}
.section-title p {
    margin-bottom: 0;
}


.about {
    padding-bottom: 30px;
}
.about .container1 {
    box-shadow: 0 5px 25px 0 rgba(214, 215, 216, 0.6);
}
.about .section-title p {
    text-align: left;
    font-style: italic;
    color: #666;
}
.about .icon-box + .icon-box {
    margin-top: 20px;
}
.about .icon-box .icon {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #f1f7fb;
    border-radius: 6px;
    transition: 0.5s;
}
.about .icon-box .icon i {
    color: #428bca;
    font-size: 32px;
}
.about .icon-box:hover .icon {
    background: #428bca;
}
.about .icon-box:hover .icon i {
    color: #fff;
}
.about .icon-box .title {
    margin-left: 95px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
}
.about .icon-box .title a {
    color: #343a40;
    transition: 0.3s;
}
.about .icon-box .title a:hover {
    color: #428bca;
}
.about .icon-box .description {
    margin-left: 95px;
    line-height: 24px;
    font-size: 14px;
}

@-webkit-keyframes pulsate-btn {
    0% {
        transform: scale(0.6, 0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1, 1);
        opacity: 0;
    }
}
@keyframes pulsate-btn {
    0% {
        transform: scale(0.6, 0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1, 1);
        opacity: 0;
    }
}

/*.col-lg-6{*/
/*    border: 1px solid red;*/
/*}*/
/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services {
    padding-bottom: 30px;
}

.services .icon-box {
    margin-bottom: 20px;
    text-align: center;
}

.services .icon {
    display: flex;
    justify-content: center;
}

.services .icon i {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.5s;
    color: #428bca;
    font-size: 40px;
    overflow: hidden;
    padding-top: 20px;
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.15);
}

.services .icon-box:hover .icon i {
    box-shadow: 0px 0 30px rgba(66, 139, 202, 0.5);
}

.services .title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 15px;
}

.services .title a {
    color: #444;
    transition: 0.3s;
}

.services .title a:hover {
    color: #428bca;
}

.services .title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    background: #428bca;
    bottom: 0;
    left: calc(50% - 25px);
}

.services .description {
    line-height: 24px;
    font-size: 14px;
}
/*--------------------------------------------------------------
# About Lists
--------------------------------------------------------------*/
.about-lists {
    padding: 40px;
}

.about-lists .row {
    overflow: hidden;
}

.about-lists .content-item {
    padding: 40px;
    border-left: 1px solid #d9e8f4;
    border-bottom: 1px solid #d9e8f4;
    margin: -1px;
}

.about-lists .content-item span {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: #9eccf4;
}

.about-lists .content-item h4 {
    font-size: 28px;
    font-weight: 400;
    padding: 0;
    margin: 20px 0;
}

.about-lists .content-item p {
    color: #aaaaaa;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .about-lists .content-item {
        padding: 40px 0;
    }
}
/*--------------------------------------------------------------
# Our Team
--------------------------------------------------------------*/
.team {
    background: #fff;
    padding: 60px 0 30px 0;
}

.team .member {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.team .member .pic {
    border-radius: 4px;
    overflow: hidden;
}

.team .member img {
    transition: all ease-in-out 0.4s;
}

.team .member:hover img {
    transform: scale(1.1);
}

.team .member .member-info {
    position: absolute;
    bottom: -48px;
    left: 20px;
    right: 20px;
    background: linear-gradient(360deg, #5c768d 0%, rgba(92, 118, 141, 0.9) 35%, rgba(140, 167, 191, 0.8) 100%);
    padding: 15px 0;
    border-radius: 4px;
}

.team .member h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.team .member h4::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 1px;
    background: #fff;
    bottom: 0;
    left: calc(50% - 25px);
}

.team .member span {
    font-style: italic;
    display: block;
    font-size: 13px;
    color: #fff;
}

.team .member .social {
    margin-top: 15px;
}

.team .member .social a {
    transition: color 0.3s;
    color: #fff;
}

.team .member .social a:hover {
    color: #9eccf4;
}

.team .member .social i {
    font-size: 16px;
    margin: 0 2px;
}

@media (max-width: 992px) {
    .team .member {
        margin-bottom: 100px;
    }
}
/*--------------------------------------------------------------
# Frequently Asked Questions
--------------------------------------------------------------*/
.faq {
    padding-bottom: 30px;
}

.faq .faq-item {
    margin-bottom: 40px;
}

.faq .faq-item h4 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f3548;
}

/*--------------------------------------------------------------
# Contact Us
--------------------------------------------------------------*/
.contact .info-box {
    color: #444;
    text-align: center;
    box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
    padding: 20px 0 30px 0;
    margin-bottom: 30px;
    width: 100%;
}

.contact .info-box i {
    font-size: 32px;
    color: #428bca;
    border-radius: 50%;
    padding: 8px;
    border: 2px dotted #9eccf4;
}

.contact .info-box h3 {
    font-size: 20px;
    color: #666;
    font-weight: 700;
    margin: 10px 0;
}

.contact .info-box p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.contact .php-email-form {
    box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
    padding: 30px;
}

.contact .php-email-form .validate {
    display: none;
    color: red;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-size: 13px;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    -webkit-animation: animate-loading 1s linear infinite;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input, .contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

.contact .php-email-form input::focus, .contact .php-email-form textarea::focus {
    background-color: #428bca;
}

.contact .php-email-form input {
    padding: 20px 15px;
}

.contact .php-email-form textarea {
    padding: 12px 15px;
}

.contact .php-email-form button[type="submit"] {
    background: #428bca;
    border: 0;
    padding: 10px 24px;
    color: #fff;
    transition: 0.4s;
}

.contact .php-email-form button[type="submit"]:hover {
    background: #6aa3d5;
}

@-webkit-keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}